package day09.doublecolon;

public class CalTest {
//    定义静态方法用于求绝对值
    public static int abs(int num,Cal cal){
        return cal.getAbs(num);
    }
    public static void main(String[] args) {
//        求绝对值
//        int s =abs(-10,num->Math.abs(num));
        int s = abs(-20,Math::abs);
        System.out.println(s);
    }
}
